using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace SMS.Common.Entities
{
   public  class ReturnDetail
    {
       private string rtn_id;
       [XmlIgnore]
        public string Rtn_ID
        {
            get { return rtn_id; }
            set { rtn_id = value; }
        }

        private string mat_code;
       [XmlElement("Code",Order=1)]
        public string Mat_Code
        {
            get { return mat_code; }
            set { mat_code = value; }
        }

        private string mat_name;
       [XmlElement("Name",Order=2)]
        public string Mat_Name
        {
            get { return mat_name; }
            set { mat_name = value; }
        }

        private string ord_unit;
        [XmlElement("OrderUnit",Order=3)]
        public string Ord_Unit
        {
            get { return ord_unit; }
            set { ord_unit = value; }
        }

        private float qty;
       [XmlElement("ReturnQty",Order=5)]
        public float Qty
        {
            get { return qty; }
            set { qty = value; }
        }
        private string spec;
       [XmlElement("Spec",Order=4)]
        public string Spec
        {
            get { return spec; }
            set { spec = value; }
        }
	
        public ReturnDetail() { }
        public ReturnDetail(string rtn_id, string mat_code, string mat_name, string ord_unit, float qty,string spec)
        {
            this.rtn_id = rtn_id;
            this.mat_code = mat_code;
            this.mat_name = mat_name;
            this.ord_unit = ord_unit;
            this.qty = qty;
            this.spec = spec;
        }
    }
}
